Repository navigation
Tab strip UX: close chip, drag reorder, context menu, Ctrl+Tab setting - #65
Merged
Merged
Conversation
The close affordance was a bare glyph with uneven padding — hard to hit and invisible as a target. It now matches the title bar's other square chips: fixed 1.6rem rounded square, accent fill on hover, sitting a step from the tab's right edge.
Preview tab displacement and scroll at strip edges without changing navigation history. Expose palette commands for keyboard reordering and preserve click behavior below the drag threshold.
Keep Ctrl+Tab cycling in strip order through a tested helper and app setting. Register last-visited mode as an explicit fallback until a reliable activation-recency ledger exists.
The 1px line was the whole hitbox — nearly impossible to grab. An invisible 4px overhang into each panel centers a 9px target on the edge without shifting layout, and the line thickens on hover so the target is visible as well as hittable.
224px was more floor than narrow windows need; 148px (two thirds) lets a slim explorer or right dock coexist with a wider editor. Clamped in both the renderer and the native save path so the two cannot drift.
Hover-reveal hid the two most common explorer actions behind an invisible state machine. They render unconditionally now, and the tn-explorer-create-reveal utility is deleted with them.
Right-clicking a tab opens a pointer-placed menu (shared Menu surface) with Close routed through the existing dirty-guard flow, plus Close others / Close tabs to the right implemented as a closeMultiple reducer action in a sibling module since tabModel.ts is at the file-size cap. Copy path works for file-backed tabs; Reveal in explorer and Pin tab are rendered disabled as not implemented — neither capability exists yet. Multi-close items stub themselves likewise when a dirty tab sits in the target set, since no multi-tab confirmation flow exists.
The breadcrumb/save strip and the settings bar used a content-driven min-h-8 while the popout headers beside them are fixed h-9, so the two rows next to each other never agreed. Both bars are h-9 now.
The scope union is only consumed inside tabClose.ts; the exported type read as dead surface in CI's knip check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reorderreducer action that leaves tab ids, selection, and location history untouched. "Move tab left/right" palette commands cover keyboard reordering.closeMultipleaction; self-stubs when a dirty tab is in the target set), Copy path for file-backed tabs. Reveal in explorer and Pin tab are stubbed disabled ("Not implemented yet").editor.tabCycleOrdersetting; both modes currently cycle in strip order — last-visited is registered but explicitly falls back until an activation-recency ledger exists (story filed inplans/ui-shell/).Test plan
pnpm vitest runin apps/desktop — 2,360 tests pass (incl. new tabReorder/tabClose/tabCycle/useTabStripDrag/TitleBar menu suites)cargo testin src-tauri — 599 passpnpm lint+pnpm typecheckclean; fullpnpm qagreenGenerated with Devin